<?php

namespace app\common\controllers;

use app\filters\i18n\I18nFilter;
use yii\filters\Cors;
use yii\web\Controller;

class CorsController extends Controller {

    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'cors'=>[
                'class'=>Cors::className(),
            ],
            'i18n'=>[
                'class'=>I18nFilter::className(),
                'header'=>"locale"
            ]
        ];
    }
}